package com.sakiko.memory.service;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.UserMessage;

/**
 * projectName: com.sakiko.memory.service
 *
 * @author: sakiko
 * time: 2025/8/28 1:14
 * description: 带记忆缓存的
 */
public interface ChatMemoryAssistant {

    /**
     * 聊天带记忆缓存功能
     * @param userId 用户 id
     * @param prompt 消息
     * @return {@link String}
     */
    String chatWithChatMemory(@MemoryId Long userId, @UserMessage String prompt);
}
